import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '销售订单',
    align: "center",
    dataIndex: 'saleOrderId_dictText'
  },
  {
    title: '客户车牌号',
    align: "center",
    dataIndex: 'carNo'
  },
  {
    title: '安装码',
    align: "center",
    dataIndex: 'installCode'
  },
  {
    title: '二维码地址',
    align: "center",
    dataIndex: 'installUrl'
  },
  {
    title: '安装人员',
    align: "center",
    dataIndex: 'installManId_dictText'
  },
  {
    title: '通知短信',
    align: "center",
    dataIndex: 'noticeSmsId_dictText'
  },
  {
    title: '通知状态',
    align: "center",
    dataIndex: 'noticeStatus_dictText'
  },
  {
    title: '订单状态',
    align: "center",
    dataIndex: 'status_dictText'
  },
  {
    title: '创建时间',
    align: "center",
    dataIndex: 'createTime'
  },
];

// 高级查询数据
export const superQuerySchema = {
  saleOrderId: {title: '销售订单',order: 0,view: 'sel_search', type: 'string',dictTable: "base_sale_order", dictCode: 'id', dictText: 'id',},
  carNo: {title: '客户车牌号',order: 1,view: 'text', type: 'string',},
  installCode: {title: '安装码',order: 2,view: 'text', type: 'string',},
  installUrl: {title: '二维码地址',order: 3,view: 'text', type: 'string',},
  installManId: {title: '安装人员',order: 4,view: 'sel_search', type: 'string',dictTable: "base_user", dictCode: 'id', dictText: 'real_name',},
  noticeSmsId: {title: '通知短信',order: 5,view: 'list', type: 'string',},
  noticeStatus: {title: '通知状态',order: 6,view: 'number', type: 'number',dictCode: 'dict_notice_status',},
  status: {title: '订单状态',order: 7,view: 'number', type: 'number',dictCode: 'dict_install_order_status',},
  createTime: {title: '创建时间',order: 8,view: 'datetime', type: 'string',},
};
